package com.dianban.service.impl;


import com.dianban.dao.ShopConsumeLogDao;
import com.dianban.entity.ShopConsumeLog;
import com.dianban.service.ShopConsumeLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;

/**
 * 用户业务实现层
 *
 * Created by bysocket on 07/02/2017.
 */
@Service
@Transactional(readOnly = true)
public class ShopConsumeLogServiceImpl implements ShopConsumeLogService {

    @Autowired
    private ShopConsumeLogDao shopConsumeLogDao;

    @Override
    @Transactional(readOnly = false)
    public int insert(ShopConsumeLog shopConsumeLog) {
        shopConsumeLog.setCreatetime(System.currentTimeMillis()/1000);
        return shopConsumeLogDao.insert(shopConsumeLog);
    }


}
